names = ['mark', 'jenny', 'forrest', 'nick']
print(names[0])
print(names[1])
print(names[-1])

message = f"你好，{names[1].title()}"
print(message)

print(names)

names[1] = 'justin'
print(names)

names.insert(0, 'lee')
names.insert(2, 'owen')
names.append('robert')
print(names)

print(f"只能names:{names[1]},{names[2]}")

user1 = names.pop()
print(user1)

del names[0]
print(names)

user2 = 'forrest'
names.remove(user2)
print(names)

cities = ['suzhou', 'wuxi', 'beijing', 'zhejiang', 'yunnan']
print(cities)
print(sorted(cities))
print(sorted(cities, reverse=True))
print(cities)
cities.reverse()
print(cities)
cities.reverse()
print(cities)
cities.sort()
print(cities)

print(f"names的长度是，{len(names)}")

print(names[10])
